package com.vastcom.sigma.admin.dao;

import com.vastcom.sigma.admin.model.Referdata;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ReferDataDao extends JpaRepository<Referdata,String> {


    @Query("select r from Referdata r where r.typeid =:id order by r.px")
    List<Referdata> getReferdatasByTypeid(@Param("id")String id);

}
